package fsaf;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ZhengCebiaodashi1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
        String path = "1.txt";
        Pattern p = Pattern.compile("[0]{3}\\w{4}[0]{3}");
        FileReader fr = new FileReader(path);
        BufferedReader br = new BufferedReader(fr);
        Matcher m=null;
        String st ="";
        while((st = br.readLine()) != null) {
        	m=p.matcher(st);
            if(m.find()){
            	 String str1=m.group();
                 String str2="from DB find By id's Data";
                 String ss=st.replace("<!--"+str1+"-->",str2);
                 System.out.println(ss);
            }else{
            	System.out.println(st);
            }     
        }
         
      }
  }


